use numpy.ndarray in matplotlib title plot with format